FROM centos:7
RUN yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
ENV JAVA_HOME /usr/lib/jvm/java
RUN echo "export JAVA_HOME=$JAVA_HOME" >> /etc/profile
ENV PATH $JAVA_HOME/bin:$PATH
RUN echo "export PATH=$PATH" >> /etc/profile
VOLUME /home/jar_home
EXPOSE 9999
# CMD tail -f /dev/null
CMD sleep 10s && cd /home/jar_home && java -jar sso-client-server-1.0.0.jar >> sso.log && tail -f /dev/null
